package com.qiulingcloud.sys.service.feign;

import com.qiulingcloud.commonsserver.entity.SysUser;
import com.qiulingcloud.sys.service.SysUserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author：zhangqiang
 * @Description：
 * @Date：Created in 12:41 2020/5/4
 * @Modified By：
 */
@RestController
@RequestMapping("feign/user")
@Api(tags = "系统管理-用户管理", description = "用户模块相关接口")
public class FeignUserService {

    @Autowired
    private SysUserService sysUserService;

    @GetMapping("userInfo/{userId}")
    @ApiOperation(value = "根据用户id获取用户详细信息")
    public SysUser pageInfo(@PathVariable("userId") String userId) {
       return sysUserService.getUserByUserId(userId);
    }
}
